package com.google.android.material.circularreveal;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.GridLayout;
import androidx.annotation.ColorInt;
import androidx.annotation.Nullable;
import o.arm;
import o.arm.d;

public class CircularRevealGridLayout extends GridLayout implements arm {
    private final CircularRevealHelper ॱ;

    public CircularRevealGridLayout(Context context) {
        this(context, null);
    }

    public CircularRevealGridLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.ॱ = new CircularRevealHelper(this);
    }

    public void ˊ() {
        this.ॱ.ˋ();
    }

    public void p_() {
        this.ॱ.ˎ();
    }

    @Nullable
    public d k_() {
        return this.ॱ.ˏ();
    }

    public void setRevealInfo(@Nullable d dVar) {
        this.ॱ.ॱ(dVar);
    }

    public int ˎ() {
        return this.ॱ.ˊ();
    }

    public void setCircularRevealScrimColor(@ColorInt int i) {
        this.ॱ.ˋ(i);
    }

    public void setCircularRevealOverlayDrawable(@Nullable Drawable drawable) {
        this.ॱ.ˋ(drawable);
    }

    public void draw(Canvas canvas) {
        if (this.ॱ != null) {
            this.ॱ.ˎ(canvas);
        } else {
            super.draw(canvas);
        }
    }

    public void ˎ(Canvas canvas) {
        super.draw(canvas);
    }

    public boolean isOpaque() {
        if (this.ॱ != null) {
            return this.ॱ.ॱ();
        }
        return super.isOpaque();
    }

    public boolean ˏ() {
        return super.isOpaque();
    }
}
